<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="huoyun" uri="/huoyun"%>
<%@ taglib uri="/struts-tags" prefix="s"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>修改企业信息</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">

		<link rel="stylesheet" type="text/css"
			href="${pageContext.request.contextPath}/theme/css/main.css">
		<link rel="stylesheet" type="text/css"
			href="${pageContext.request.contextPath}/theme/css/style_userCenter.css">
		<script type="text/javascript"
			src="${pageContext.request.contextPath}/theme/js/jquery-1.6.js"></script>
		<script type="text/javascript"
			src="${pageContext.request.contextPath}/car/js/jarea-by-chengxin.js"></script>
		<script type="text/javascript"
			src="${pageContext.request.contextPath}/car/js/publish-car-tzh.js"></script>
		<script type="text/javascript"
			src="${pageContext.request.contextPath}/theme/js/calendar/WdatePicker.js"></script>
		<script type="text/javascript"
			src="${pageContext.request.contextPath}/theme/js/jquery-1.6.js"></script>
		<script type="text/javascript"
			src="${pageContext.request.contextPath}/theme/js/jquery.validate.js"></script>
		<script type="text/javascript"
			src="${pageContext.request.contextPath}/theme/js/additional-methods.js"
			charset="utf-8"></script>

		<script type="text/javascript">
	$(document).ready(function() {
		$("#editCompany").validate( {
			errorPlacement : function(error, element) {
				//element.parent("td").append(error);
			element.attr("title", error.html());
		},
		rules : {
			"company.name" : {
				required : true
			},
			"company.province" : {
				required : true
			},
			"company.city" : {
				required : true
			},
			"company.town" : {
				required : true
			},
			"company.address" : {
				required : true
			},
			"companyPerson.name" : {
				required : true,
				maxlength : 10,
				chinese : true
			},
			"companyPerson.phone" : {
				required : true,
				number : true,
				mobile : true
			},
			"companyPerson.crashPhone" : {
				required : true,
				number : true,
				mobile : true
			}

		},

		messages : {
			"company.name" : {
				required : "请输入公司名称"
			},
			"company.province" : {
				required : "请选择起运地省市区"
			},
			"company.city" : {
				required : "请选择起运地省市区"
			},
			"company.town" : {
				required : "请选择起运地省市区"
			},
			"company.address" : {
				required : "请填写公司所在街道地址，必须在5-60个字之间，且不全为数字字母"
			},
			"companyPerson.name" : {
				required : "请输入联系人姓名",
				maxlength : "收货人姓名不能超过10个字符",
				chinese : "只能输入中文"
			},
			"companyPerson.phone" : {
				required : "请输入联系人电话"
			},
			"companyPerson.crashPhone" : {
				required : "请输入联系人紧急联系方式"
			}
		}

		//debug : true
				});
	});
</script>

		<style type="text/css">
.red {
	color: red;
}
</style>
	</head>

	<body>

		<div>
			<jsp:include page="../nav.jsp">
				<jsp:param value="nav_main" name="nav" />
			</jsp:include>
		</div>
		<div class="realCer">

			<!--主体部分-->
			<div class="realMain clearfix mt10">

				<!--左侧菜单-->
				<div class="realLeft" id="meunLeft">
					<jsp:include page="../leftMenu.jsp">
						<jsp:param value="con_nav_account" name="con_nav" />
						<jsp:param value="userInfoManagement" name="selectMenu" />
					</jsp:include>
				</div>
				<!--中由-->
				<div class="realRight ml10">
					<!--中间-->
					<div class="realR_left">
						<div class="box">
							<div class="tit">
								修改商标
							</div>
							<div class="con">
								<div class="form_wrap clearfix">
									<div style="color: red; margin-left: 100px;">
										<s:property value="resultMsg" />
										<s:fielderror></s:fielderror>
									</div>

									<form method="post" id="editCompany" name="editCompany"
										action="company/changeLogo.action"
										enctype="multipart/form-data">
										<table class="tableForm">
											<tbody>
												<tr>
													<th class="thLabel" width="100">
														当前商标
													</th>
													<th class="thLabel">
														设置新商标
													</th>
												</tr>
												<tr>
													<td class="tdLabel" width="100">
														<img style="width: 80px; height: 80px"
															src="${pageContext.request.contextPath }<s:property value="company.logoImg"/>" />
													</td>
													<td class="tdValue">
														<input type="file" name="logoImgFile" id="logoImgFile"
															class="inputtext" />
													</td>
													
												</tr>
												<tr>
												    <td></td>
													<td style="text-align:right;"><input type="submit" name="regCompanyCargo" id="regCompanyCargo" value="提交" class="submit_button" />
													</td>
												</tr>
											</tbody>
										</table>
									</form>

								</div>
							</div>
						</div>
					</div>
					<!-- 中间 -->
				</div>
			</div>
			<div>
				<jsp:include page="/footer.jsp"></jsp:include>
			</div>
	</body>
</html>
